#ifndef PHYUTILS_H
#define PHYUTILS_H

enum PHY_Shapes
{
	PHY_Sphere				=	1,
	PHY_Box						=	2,
	PHY_Convex				= 3
};

class PHYVector
{
public:
	PHYVector(){_X=0.;_Y=0.;_Z=0.;};
	PHYVector(double iX,double iY,double iZ){_X=iX;_Y=iY;_Z=iZ;};
	void setVector(double iX,double iY,double iZ){_X=iX;_Y=iY;_Z=iZ;};
	void setVector(PHYVector &iVec){_X=iVec.getX();_Y=iVec.getY();_Z=iVec.getZ();};
	double getX(){return _X;};
	double getY(){return _Y;};
	double getZ(){return _Z;};
	PHYVector& operator+(PHYVector &iV)
	{
		this->_X = this->_X + iV.getX();
		this->_Y = this->_Y + iV.getY();
		this->_Z = this->_Z + iV.getZ();
		return *this;
	};
	PHYVector& operator-(PHYVector &iV)
	{
		this->_X = this->_X - iV.getX();
		this->_Y = this->_Y - iV.getY();
		this->_Z = this->_Z - iV.getZ();
		return *this;
	};
private:
	double _X, _Y, _Z;
};

#endif

